﻿<%@ Page Language="C#" MasterPageFile="~/CmsMaster.Master" AutoEventWireup="true" CodeBehind="AddNewContractor.aspx.cs" Inherits="ContractManagementSystem.Presentation.ProfileManagement.AddNewContractor" Title="Profile manager >>> Add Contractor" ValidateRequest="false" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    
    <link href="../../Styles/ClientStyle.css" rel="stylesheet" type="text/css" />
    <script type = "text/javascript" language = "javascript" src = "../../JavaScript/JsLibrary.js"></script>
    <script type = "text/javascript" language = "javascript" src = "../../JavaScript/jquery.js"></script>
    <script type = "text/javascript" language = "javascript" src = "../../JavaScript/menu.js"></script>

    <!---validate form--->
    <link href="../../JavaScript/validationEngine/css/template.css" rel="stylesheet"
        type="text/css" />
    <link href="../../JavaScript/validationEngine/css/validationEngine.jquery.css" rel="stylesheet"
        type="text/css" />
    <script src="../../JavaScript/validationEngine/js/jquery-1.6.min.js" type="text/javascript"></script>   

    <script src="../../JavaScript/validationEngine/js/jquery.validationEngine-en.js"
        type="text/javascript"></script>

    <script src="../../JavaScript/validationEngine/js/jquery.validationEngine.js" type="text/javascript"></script>
    
    <script type="text/javascript">
        jQuery(document).ready(function() {
        jQuery("#aspnetForm").validationEngine();
        });
    </script>
    <!----------------->
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentHolder" runat="server">
    <div id="AdminArea">
        
        <h3 class="CPFtitle"></h3>

        <div class="CPFinput">
        <asp:Label ID="Label1" runat="server" CssClass="CPFInputLabel" Visible="False">User Name: </asp:Label>
        <asp:TextBox runat="server" ID="textUserName" MaxLength = "30" 
                CssClass="CPFInputField username" Enabled="true" Visible="False"></asp:TextBox>
             <div class="CPFCheckBoxU">     
                <asp:CheckBox runat="server" ID="checkBoxAutoUserName" Text="Auto UserName" Enabled="false" Visible="false" />                    
            </div>      
        </div> 
        
        <div class="CPFinput">
        <asp:Label ID="Label2" runat="server" CssClass="CPFInputLabel">FullName:</asp:Label>
        <asp:TextBox runat="server" ID="textFullName" MaxLength = "30" 
                CssClass="validate[required] CPFInputField fullname" ></asp:TextBox>
        <span class = "RequiredField">*</span>       

        </div>    

        <div class="CPFinput">
            <asp:CheckBox runat="server" ID="checkAutoAccount" CssClass="CPFcheckAuto" Text="Automatically create an account" Checked="true"/>       
        </div>
        
        <div class="CPFinput">
        <asp:Label ID="Label3" runat="server" CssClass="CPFInputLabel">Email:</asp:Label>
        <asp:TextBox runat="server" ID="textEmail" CssClass="validate[required,custom[email] CPFInputField email" MaxLength = "30"
                     ></asp:TextBox>
        <span class = "RequiredField">*</span>        
        </div>

        <div class="CPFinput">
        <asp:Label ID="Label4" runat="server" CssClass="CPFInputLabel">Phone Number 1:</asp:Label>
        <asp:TextBox runat="server" ID="textPhoneNumber1" CssClass="validate[required,custom[integer]] CPFInputField phoneNumber1"  MaxLength = "30"
                     ></asp:TextBox>
        <span class = "RequiredField">*</span>        
        </div>

        <div class="CPFinput">
        <asp:Label ID="Label5" runat="server" CssClass="CPFInputLabel">Phone Number 2:</asp:Label>  
        <asp:TextBox runat="server" ID="textPhoneNumber2" CssClass="validate[required,custom[integer]] CPFInputField phonenumber2" MaxLength = "30"
                     ></asp:TextBox>
        <span class = "RequiredField">*</span>        
        </div>
          
        <div class="CPFinput">
        <asp:Label ID="Label6" runat="server" CssClass="CPFInputLabel" >Address:</asp:Label>        
        <asp:TextBox runat="server" ID="textAddress"  CssClass="validate[required] CPFInputField address" MaxLength = "30" TextMode="MultiLine" ></asp:TextBox>
        <span class = "RequiredField">*</span>         
        </div>
   
        <div class="CPFinput">
        <asp:Label ID="Label9" runat="server" CssClass="CPFInputLabel">Branch:</asp:Label>        
        <asp:TextBox runat="server" ID="textBranch"  CssClass="CPFInputField branch" MaxLength = "30" ></asp:TextBox>
        <span class = "RequiredField">*</span>         
        </div>   

        <div class="CPFinput">
        <asp:Label ID="Label10" runat="server" CssClass="CPFInputLabel">Sort Code:</asp:Label>        
        <asp:TextBox runat="server" ID="textSortCode"  CssClass="CPFInputField sortcode" MaxLength = "30" ></asp:TextBox>
        <span class = "RequiredField">*</span>         
        </div>
   
        <div class="CPFinput">
        <asp:Label ID="Label7" runat="server" CssClass="CPFInputLabel" ></asp:Label>    
        <asp:Label runat="server" ID="ResultMessage" CssClass = "Results"></asp:Label>        
        </div>    
        
        <div class="CPFinput">
        <asp:Label ID="Label11" runat="server" CssClass="CPFInputLabel" Visible="False" ></asp:Label>    
        </div>     
       
        <div class="CPFDivButton">
        <asp:Label ID="Label8"  runat = "server" Text = "" CssClass = "CPFInputLabel"></asp:Label>
        <asp:Button runat="server" ID="ButtonSave" Text="Save" CssClass ="CPFButton1"
                    onclick="ButtonAddNewClick" />
        &nbsp;&nbsp;&nbsp;
        <asp:Button runat="server" ID="ButtonReset" Text="Reset" CssClass="CPFButton1" onclick="ButtonResetClick"/>        
        &nbsp;</div>       
    </div>

</asp:Content>

